import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";
import {QrtzTriggers} from "./QrtzTriggers";


@Entity("QRTZ_SIMPLE_TRIGGERS",{schema:"nest-mall" } )
export class QrtzSimpleTriggers {

   
    @ManyToOne(type=>QrtzTriggers, qRTZ_TRIGGERS=>qRTZ_TRIGGERS.qRtzSimpleTriggerSs,{ primary:true, nullable:false,onDelete: 'RESTRICT',onUpdate: 'RESTRICT' })
    @JoinColumn({ name:'SCHED_NAME'})
    sChedName:QrtzTriggers | null;


   
    @ManyToOne(type=>QrtzTriggers, qRTZ_TRIGGERS=>qRTZ_TRIGGERS.qRtzSimpleTriggerSs2,{ primary:true, nullable:false,onDelete: 'RESTRICT',onUpdate: 'RESTRICT' })
    @JoinColumn({ name:'TRIGGER_NAME'})
    tRiggerName:QrtzTriggers | null;


   
    @ManyToOne(type=>QrtzTriggers, qRTZ_TRIGGERS=>qRTZ_TRIGGERS.qRtzSimpleTriggerSs3,{ primary:true, nullable:false,onDelete: 'RESTRICT',onUpdate: 'RESTRICT' })
    @JoinColumn({ name:'TRIGGER_GROUP'})
    tRiggerGroup:QrtzTriggers | null;


    @Column("bigint",{ 
        nullable:false,
        name:"REPEAT_COUNT"
        })
    repeatCount:string;
        

    @Column("bigint",{ 
        nullable:false,
        name:"REPEAT_INTERVAL"
        })
    repeatInterval:string;
        

    @Column("bigint",{ 
        nullable:false,
        name:"TIMES_TRIGGERED"
        })
    timesTriggered:string;
        
}
